"use strict";
/** @type {import('sequelize-cli').Migration} */
module.exports = {
  async up(queryInterface, Sequelize) {
    await queryInterface.createTable("SizeRules", {
      id: {
        allowNull: false,
        autoIncrement: true,
        primaryKey: true,
        type: Sequelize.INTEGER,
      },
      long: {
        type: Sequelize.INTEGER,
      },
      wide: {
        type: Sequelize.INTEGER,
      },
      height: {
        type: Sequelize.INTEGER,
      },
      presetsNum: {
        type: Sequelize.STRING,
      },
      layerNum: {
        type: Sequelize.STRING,
      },
      palletizingNum: {
        type: Sequelize.STRING,
      },
      grippingDirection: {
        type: Sequelize.STRING,
      },
      leftAndRightFaultToleranceNum: {
        type: Sequelize.STRING,
      },
      faultToleranceBeforeAndAfterNum: {
        type: Sequelize.STRING,
      },
      userId: {
        type: Sequelize.INTEGER,
      },
      userName: {
        type: Sequelize.STRING,
      },
      beUsed: {
        type: Sequelize.STRING,
      },
      deletedAt: {
        type: Sequelize.DATE,
      },
      createdAt: {
        allowNull: false,
        type: Sequelize.DATE,
      },
      updatedAt: {
        allowNull: false,
        type: Sequelize.DATE,
      },
    });
  },
  async down(queryInterface, Sequelize) {
    await queryInterface.dropTable("SizeRules");
  },
};
